﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SalesPortal.Web
{
    /// <summary>
    /// Custom GIF (Sample 4;
    /// This example of customgif uses C# and code-behind
    /// 
    /// </summary>
    public partial class customgif : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            using (Bitmap objBitmap = new Bitmap(200, 200))
            using (Graphics objGraphics = Graphics.FromImage(objBitmap))
            {
                objGraphics.DrawLine(new Pen(Color.LemonChiffon), 0, 0, 200, 200);
                objBitmap.Save(Response.OutputStream, ImageFormat.Gif);
            }
        }
    }
}